package com.ioc.pojo;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Value;

@Accessors(chain = true)
@Data
public class User {

    @Value(value = "${user.name}")
    private String userName;
    @Value(value = "${user.password}")
    private String password;
    @Value(value = "${updatetime}")
    private String updateTime;


    public User() {
    }

    public User(String userName, String password, String updateTime) {
        this.userName = userName;
        this.password = password;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "bean{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
